<template>
  <div>
    <h3>i18n</h3>
    <el-button @click="btnClick">切换语言</el-button>
    <div>{{ $t('xxx') }}</div>
    <el-calendar />
  </div>
</template>
<script>
export default {
  methods: {
    btnClick() {
      if (this.$i18n.locale === 'zh') {
        this.$i18n.locale = 'en'
      } else {
        this.$i18n.locale = 'zh'
      }
    }
  }
}
</script>
<style></style>
